from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import FocusSessionViewSet, FocusLogViewSet

router = DefaultRouter()
router.register(r'focus_sessions', FocusSessionViewSet, basename='focus_session')
router.register(r'focus_logs', FocusLogViewSet, basename='focus_log')

urlpatterns = [
    path('', include(router.urls)),  # 使用空路径包含路由
]
